export const setMinArticle = async (formData, method) => {
    try {
        let response = await fetch(`/api/min_article`, {
            method,
            headers: {
                'Content-Type': 'application/json;charset=utf-8'
            },
            body: JSON.stringify(formData)
        })
        let result = await response.json()

        if (result.code === 500) throw new Error(result.msg)
        return result.data
    } catch (error) {
        return error
    }
}
